#include <iostream>
using namespace std;

class A {
public:
	 void test(float a) {
		cout << " 1" <<endl;
	}
};
class B :public A{
public:
	void test(int b) {
		cout << " 2" <<endl;
	}
};
int main() {
	A* a = new A;
	B* b = new B;
	a = b;
	a->test(1);

	//A* a = new B;
	//a->test(1.1);

	system("pause");
	return 0;
}
